home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 July & August / PCWorld_2006-07-08_cd.bin / v cisle / acehtml / acehtmlfreeware.exe / scriptdef / Pausing up-down Message Scroller.sd < prev    next >
INI File  |  2004-06-28  |  6KB  |  246 lines

  1. [SUBJECT]
  2. Description=Pausing up-down message scroller Script
  3. ImageIndex=-1
  4. Folder=Text Effects
  5.  
  6.  
  7. [BODY_TEXT]
  8. ;
  9. ;<script language="JavaScript1.2">
  10. ;
  11. ;/*
  12. ;Pausing up-down message scroller-
  13. ;Last updated: 99/07/05 (Bugs fixed, ability to specify background image for scroller)
  14. ;⌐ Dynamic Drive (www.dynamicdrive.com)
  15. ;For full source code, installation instructions,
  16. ;100's more DHTML scripts, and Terms Of
  17. ;Use, visit dynamicdrive.com
  18. ;*/
  19. ;
  20. ;//configure the below five variables to change the style of the scroller
  21. ;var scrollerwidth=`scroller_width`;
  22. ;var scrollerheight=`scroller_height`;
  23. ;var scrollerbgcolor='lightyellow';
  24. ;//set below to '' if you don't wish to use a background image
  25. ;var scrollerbackground='`scroller_background`';
  26. ;
  27. ;//configure the below variable to change the contents of the scroller
  28. ;var messages=new Array();
  29. ;messages[0]="<font face='Arial'><a href='`url0`'>`caption0`</a></font>";
  30. ;messages[1]="<font face='Arial'><a href='`url1`'>`caption1`</a></font>";
  31. ;messages[2]="<font face='Arial'><a href='`url2`'>`caption2`</a></font>";
  32. ;messages[3]="<font face='Arial'><a href='`url3`'>`caption3`</a></font>";
  33. ;messages[4]="<font face='Arial'><a href='`url4`'>`caption4`</a></font>";
  34. ;
  35. ;///////Do not edit pass this line///////////////////////
  36. ;
  37. ;if (messages.length>1)
  38. ;i=2;
  39. ;else
  40. ;i=0;
  41. ;
  42. ;function move1(whichlayer){
  43. ;tlayer=eval(whichlayer);
  44. ;if (tlayer.top>0&&tlayer.top<=5){
  45. ;tlayer.top=0;
  46. ;setTimeout("move1(tlayer)",3000);
  47. ;setTimeout("move2(document.main.document.second)",3000);
  48. ;return;
  49. ;}
  50. ;if (tlayer.top>=tlayer.document.height*-1){
  51. ;tlayer.top-=5;
  52. ;setTimeout("move1(tlayer)",100);
  53. ;}
  54. ;else{
  55. ;tlayer.top=scrollerheight;
  56. ;tlayer.document.write(messages[i]);
  57. ;tlayer.document.close();
  58. ;if (i==messages.length-1)
  59. ;i=0;
  60. ;else
  61. ;i++;
  62. ;}
  63. ;}
  64. ;
  65. ;function move2(whichlayer){
  66. ;tlayer2=eval(whichlayer);
  67. ;if (tlayer2.top>0&&tlayer2.top<=5){
  68. ;tlayer2.top=0;
  69. ;setTimeout("move2(tlayer2)",3000);
  70. ;setTimeout("move1(document.main.document.first)",3000);
  71. ;return;
  72. ;}
  73. ;if (tlayer2.top>=tlayer2.document.height*-1){
  74. ;tlayer2.top-=5;
  75. ;setTimeout("move2(tlayer2)",100);
  76. ;}
  77. ;else{
  78. ;tlayer2.top=scrollerheight;
  79. ;tlayer2.document.write(messages[i]);
  80. ;tlayer2.document.close();
  81. ;if (i==messages.length-1)
  82. ;i=0;
  83. ;else
  84. ;i++;
  85. ;}
  86. ;}
  87. ;
  88. ;function move3(whichdiv){
  89. ;tdiv=eval(whichdiv);
  90. ;if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5){
  91. ;tdiv.style.pixelTop=0;
  92. ;setTimeout("move3(tdiv)",3000);
  93. ;setTimeout("move4(second2)",3000);
  94. ;return;
  95. ;}
  96. ;if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){
  97. ;tdiv.style.pixelTop-=5;
  98. ;setTimeout("move3(tdiv)",100);
  99. ;}
  100. ;else{
  101. ;tdiv.style.pixelTop=scrollerheight;
  102. ;tdiv.innerHTML=messages[i];
  103. ;if (i==messages.length-1)
  104. ;i=0;
  105. ;else
  106. ;i++;
  107. ;}
  108. ;}
  109. ;
  110. ;function move4(whichdiv){
  111. ;tdiv2=eval(whichdiv);
  112. ;if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5){
  113. ;tdiv2.style.pixelTop=0;
  114. ;setTimeout("move4(tdiv2)",3000);
  115. ;setTimeout("move3(first2)",3000);
  116. ;return;
  117. ;}
  118. ;if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){
  119. ;tdiv2.style.pixelTop-=5;
  120. ;setTimeout("move4(second2)",100);
  121. ;}
  122. ;else{
  123. ;tdiv2.style.pixelTop=scrollerheight;
  124. ;tdiv2.innerHTML=messages[i];
  125. ;if (i==messages.length-1)
  126. ;i=0;
  127. ;else
  128. ;i++;
  129. ;}
  130. ;}
  131. ;
  132. ;function startscroll(){
  133. ;if (document.all){
  134. ;move3(first2);
  135. ;second2.style.top=scrollerheight;
  136. ;second2.style.visibility='visible';
  137. ;}
  138. ;else if (document.layers){
  139. ;document.main.visibility='show';
  140. ;move1(document.main.document.first);
  141. ;document.main.document.second.top=scrollerheight+5;
  142. ;document.main.document.second.visibility='show';
  143. ;}
  144. ;}
  145. ;
  146. ;window.onload=startscroll;
  147. ;
  148. ;</script>
  149. ;
  150. ;
  151. ;
  152. ;
  153. ;<ilayer id="main" width=&{scrollerwidth}; height=&{scrollerheight}; bgColor=&{scrollerbgcolor}; background=&{scrollerbackground}; visibility=hide>
  154. ;<layer id="first" left=0 top=1 width=&{scrollerwidth};>
  155. ;<script language="JavaScript1.2">
  156. ;if (document.layers)
  157. ;document.write(messages[0]);
  158. ;</script>
  159. ;</layer>
  160. ;<layer id="second" left=0 top=0 width=&{scrollerwidth}; visibility=hide>
  161. ;<script language="JavaScript1.2">
  162. ;if (document.layers)
  163. ;document.write(messages[1]);
  164. ;</script>
  165. ;</layer>
  166. ;</ilayer>
  167. ;
  168. ;<script language="JavaScript1.2">
  169. ;if (document.all){
  170. ;document.writeln('<span id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hiden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">');
  171. ;document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0;top:0">');
  172. ;document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0;top:1;">');
  173. ;document.write(messages[0]);
  174. ;document.writeln('</div>');
  175. ;document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0;top:0;visibility:hidden">');
  176. ;document.write(messages[1]);
  177. ;document.writeln('</div>');
  178. ;document.writeln('</div>');
  179. ;document.writeln('</span>');
  180. ;}
  181. ;</script>
  182. ;
  183.  
  184.  
  185.  
  186. [`scroller_width`]
  187. Kind=N
  188. Value=150
  189.  
  190. [`scroller_height`]
  191. Kind=N
  192. Value=120
  193.  
  194. [`scroller_background`]
  195. Kind=U
  196. Value=scrollerback.gif
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203. [`url0`]
  204. Kind=U
  205. Value=http://dynamicdrive.com
  206.  
  207. [`url1`]
  208. Kind=U
  209. Value=http://wsabstract.com
  210.  
  211. [`url2`]
  212. Kind=U
  213. Value=http://www.geocities.com/ResearchTriangle/Facility/4490
  214.  
  215. [`url3`]
  216. Kind=U
  217. Value=http://www.freewarejava.com
  218.  
  219. [`url4`]
  220. Kind=U
  221. Value=http://dynamicdrive.com/link.htm
  222.  
  223.  
  224.  
  225.  
  226. [`caption0`]
  227. Kind=S
  228. Value=Click here to go back to Dynamicdrive.com frontpage
  229.  
  230. [`caption1`]
  231. Kind=S
  232. Value=Visit Website Abstraction for award winning JavaScript tutorials
  233.  
  234. [`caption2`]
  235. Kind=S
  236. Value=Want to learn DHTML? Click here
  237.  
  238. [`caption3`]
  239. Kind=S
  240. Value=Looking for Free Java applets? Visit Freewarejava.com!
  241.  
  242. [`caption4`]
  243. Kind=S
  244. Value=If you find this script useful, please click here to link back to Dynamic Drive!
  245.  
  246.